const { ErrorModel } = require('../../../../common/model/res-model')

module.exports = (req, res, next) => {
	if (!req.session.username) {
		return res.json(new ErrorModel('未登录'))
	}
	next()
}
